<?php

include_once("../service/recruitmentService.php");
$result = getAllRecruitment();
$row = ConnectionManager::getInstance()->getNumRows();
if ($row == 0) {
    $name = $_POST["content"];
    addRecruitment($name);
    Header("Location: ../admin-page/addRecruitment.php?message=ok");
    return;
} else {
    Header("Location: ../admin-page/addRecruitment.php?message=error");
    return;
}
?>
